package org.example.petitionplatformsystem.service;

import org.example.petitionplatformsystem.dao.model.News;

import java.util.List;

public interface NewsService {
    public void addNews(News news);

    public void deleteNews(long id);

    public void updateNews(News news);
    public List<News> getAllNews();
    public List<News> getCategoriesByCategoryID(long id);
    public News getNewsById(long id);
}
